package com.springboot.logback.utils.impllogback;

import ch.qos.logback.classic.Logger;
import com.springboot.logback.utils.AbstractLogger;

/**
 * neu
 * 2019/7/29 9:50
 *
 * @Version : 1.0
 * @Description :
 */
public class LogbackLogger extends AbstractLogger {

    private Logger logger;

    public LogbackLogger() {

    }

    public LogbackLogger(Logger logger) {
        this.logger = logger;
    }

    @Override
    public void trace(String msg) {
        logger.trace(msg);
    }

    @Override
    public void trace(String msg, Object arg) {
        logger.trace(msg, arg);
    }

    @Override
    public void trace(String msg, Object arg1, Object arg2) {
        logger.trace(msg, arg1, arg2);
    }

    @Override
    public void trace(String msg, Object... arguments) {
        logger.trace(msg, arguments);
    }

    @Override
    public void trace(String msg, Throwable t) {
        logger.trace(msg, t);
    }

    @Override
    public void debug(String msg) {
        logger.debug(msg);
    }

    @Override
    public void debug(String msg, Object arg) {
        logger.debug(msg, arg);
    }

    @Override
    public void debug(String msg, Object arg1, Object arg2) {
        logger.debug(msg, arg1, arg2);
    }

    @Override
    public void debug(String msg, Object... arguments) {
        logger.debug(msg, arguments);
    }

    @Override
    public void debug(String msg, Throwable t) {
        logger.debug(msg, t);
    }

    @Override
    public void info(String msg) {
        logger.info(msg);
    }

    @Override
    public void info(String msg, Object arg) {
        logger.info(msg, arg);
    }

    @Override
    public void info(String msg, Object arg1, Object arg2) {
        logger.info(msg, arg1, arg2);
    }

    @Override
    public void info(String msg, Object... arguments) {
        logger.info(msg, arguments);
    }

    @Override
    public void info(String msg, Throwable t) {
        logger.info(msg, t);
    }

    @Override
    public void warn(String msg) {
        logger.warn(msg);
    }

    @Override
    public void warn(String msg, Object arg) {
        logger.warn(msg, arg);
    }

    @Override
    public void warn(String msg, Object... arguments) {
        logger.warn(msg, arguments);
    }

    @Override
    public void warn(String msg, Object arg1, Object arg2) {
        logger.warn(msg, arg1, arg2);
    }

    @Override
    public void warn(String msg, Throwable t) {
        logger.warn(msg, t);
    }

    @Override
    public void error(String msg) {
        logger.error(msg);
    }

    @Override
    public void error(String msg, Object arg) {
        logger.error(msg, arg);
    }

    @Override
    public void error(String msg, Object arg1, Object arg2) {
        logger.error(msg, arg1, arg2);
    }

    @Override
    public void error(String msg, Object... arguments) {
        logger.error(msg, arguments);
    }

    @Override
    public void error(String msg, Throwable t) {
        logger.error(msg, t);
    }

    @Override
    public void trace(Throwable t) {
        logger.trace(null, t);
    }

    @Override
    public void debug(Throwable t) {
        logger.debug(null, t);
    }

    @Override
    public void info(Throwable t) {
        logger.info(null, t);
    }

    @Override
    public void warn(Throwable t) {
        logger.warn(null, t);
    }

    @Override
    public void error(Throwable t) {
        logger.error(null, t);
    }

    @Override
    public boolean isTraceEnabled() {
        // TODO Auto-generated method stub
        return false;
    }

    @Override
    public boolean isDebugEnabled() {
        return logger.isDebugEnabled();
    }

    @Override
    public boolean isInfoEnabled() {
        return logger.isInfoEnabled();
    }

    @Override
    public boolean isWarnEnabled() {
        return logger.isWarnEnabled();
    }

    @Override
    public boolean isErrorEnabled() {
        return logger.isErrorEnabled();
    }

}
